package stdio.costa.imoca.spi;

import java.io.InputStream;

public interface StorageSpi {
	
	/**
	 * @param file
	 * @param mimeType
	 * @param uuid 
	 * @throws Exception 
	 */
	void uploadAsynchronously(InputStream file, String mimeType, String uuid) throws Exception;
	
	/**
	 * @param file
	 * @param mimeType
	 * @param uuid
	 */
	void uploadSynchronously(InputStream file, String mimeType, String uuid) throws Exception;

	/**
	 * @param uuid
	 * @param width
	 * @param height
	 * @return url
	 */
	String buildGetUrl(String uuid, int width, int height);
}
